.class Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;
.super Landroid/view/ScaleGestureDetector$SimpleOnScaleGestureListener;
.source "ViewImage21.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "i0"
.end annotation


# instance fields
.field private a:Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

.field private b:F


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Landroid/view/ScaleGestureDetector$SimpleOnScaleGestureListener;-><init>()V

    const/high16 v0, 0x3f800000    # 1.0f

    .line 2
    iput v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;->b:F

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;->a:Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

    return-void
.end method


# virtual methods
.method public onScale(Landroid/view/ScaleGestureDetector;)Z
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;->a:Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;->getMaxZoom()F

    move-result v0

    const/4 v1, 0x1

    const/high16 v2, 0x3f800000    # 1.0f

    cmpg-float v0, v0, v2

    if-gez v0, :cond_0

    return v1

    .line 2
    :cond_0
    iget v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;->b:F

    invoke-virtual {p1}, Landroid/view/ScaleGestureDetector;->getScaleFactor()F

    move-result p1

    mul-float v0, v0, p1

    iput v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;->b:F

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;->a:Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;->getDefaultScale()F

    move-result p1

    sub-float/2addr v0, p1

    const/4 p1, 0x0

    cmpg-float v0, v0, p1

    if-gez v0, :cond_1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;->a:Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;->getDefaultScale()F

    move-result v0

    iput v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;->b:F

    .line 5
    :cond_1
    iget v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;->b:F

    const/high16 v2, 0x40400000    # 3.0f

    sub-float/2addr v0, v2

    cmpl-float p1, v0, p1

    if-lez p1, :cond_2

    .line 6
    iput v2, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;->b:F

    .line 7
    :cond_2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;->a:Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

    iget v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;->b:F

    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/app/imageviewer/e;->a(F)V

    return v1
.end method

.method public onScaleBegin(Landroid/view/ScaleGestureDetector;)Z
    .locals 0

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;->a:Lcom/estrongs/android/pop/app/imageviewer/ImageViewTouch;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/imageviewer/e;->getScale()F

    move-result p1

    iput p1, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$i0;->b:F

    const/4 p1, 0x1

    return p1
.end method
